package com.weishi.project.training.vo;
import	java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weishi.framework.aspectj.lang.annotation.Excel;
import com.weishi.project.training.domain.TrainingDay;
import com.weishi.project.training.domain.TrainingGroup;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class TrainingDayAddVo implements Serializable {

    private List <TrainingGroup> trainingGroups;

    public TrainingDay getTrainingDay(){
        TrainingDay trainingDay = new TrainingDay();
        trainingDay.setId(this.id);
        trainingDay.setWeekId(this.weekId);
        trainingDay.setDayWeek(this.dayWeek);
        trainingDay.setFourSeasons(this.fourSeasons);
        trainingDay.setFirstLevel(this.firstLevel);
        trainingDay.setSecondLevel(this.secondLevel);
        trainingDay.setFirstLevelName(this.firstLevelName);
        trainingDay.setSecondLevelName(this.secondLevelName);
        trainingDay.setClassHour(this.classHour);
        trainingDay.setRealClassHour(this.realClassHour);
        trainingDay.setKilometers(this.kilometers);
        trainingDay.setIdealKilometers(this.idealKilometers);
        trainingDay.setWarmUpKilometers(this.warmUpKilometers);
        trainingDay.setSr(this.sr);
        trainingDay.setSrMemo(this.srMemo);
        trainingDay.setSrTwo(this.srTwo);
        trainingDay.setHr(this.hr);
        trainingDay.setHrTwo(this.hrTwo);
        trainingDay.setNumberGroups(this.numberGroups);
        trainingDay.setDay(this.day);
        trainingDay.setGapTime(this.gapTime);
        trainingDay.setStrength(this.strength);
        trainingDay.setScore(this.score);
        trainingDay.setStartTime(this.startTime);
        trainingDay.setEndTime(this.endTime);
        trainingDay.setWeather(this.weather);
        trainingDay.setWindSpeed(this.windSpeed);
        trainingDay.setAirTemperature(this.airTemperature);
        trainingDay.setSiteFactors(this.siteFactors);
        trainingDay.setCtime(this.ctime);
        trainingDay.setWeekName(this.weekName);
        trainingDay.setCompletion(this.completion);
        trainingDay.setTrainingMode(this.trainingMode);
        trainingDay.setSchemeId(this.schemeId);
        return trainingDay;
    }



    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    private Integer id;

    /**
     * 训练周Id
     */
    private Integer weekId;

    /**
     * Mon,Tues,Wed,Thur,Fri,Sat,Sun
     */
    private String dayWeek;

    /**
     * 四时：早晨beforedawn 上午：morning 下午：afternoon 晚上：night
     */
    private String fourSeasons;

    /**
     * 一级科目
     */
    private String firstLevel;

    /**
     * 二级科目
     */
    private String secondLevel;

    private String firstLevelName;

    private String secondLevelName;

    /**
     * 课时 /分钟
     */
    private int classHour;

    /**
     * 课时 /分钟
     */
    private int realClassHour;

    /**
     * 公里数
     */
    private Integer kilometers;

    /**
     * 理想公里数
     */
    private Integer idealKilometers;

    private Integer warmUpKilometers;

    /**
     * 桨频sr
     */
    private Integer sr;

    private String srMemo;

    /**
     * 桨频sr2
     */
    private Integer srTwo;

    /**
     * 心率HR
     */
    private Integer hr;

    /**
     * 心率HR2
     */
    private Integer hrTwo;

    /**
     * 组数
     */
    private Integer numberGroups;

    private String day;

    /**
     * 间隙时间/min
     */
    @Excel(name = "间隙时间/min")
    private Integer gapTime;

    @Excel(name = "强度")
    private String strength;

    @Excel(name = "评分")
    private double score;

    @Excel(name = "开始时间")
    private String startTime;

    @Excel(name = "结束时间")
    private String endTime;

    /**
     * 天气
     */
    @Excel(name = "天气")
    private String weather;

    /**
     * 风速
     */
    @Excel(name = "风速")
    private String windSpeed;

    /**
     * 气温
     */
    @Excel(name = "气温")
    private Double airTemperature;

    /**
     * 场地因素
     */
    @Excel(name = "场地因素")
    private String siteFactors;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /**
     * 周名称 非数据库字段
     */
    @TableField(exist = false)
    private String weekName;

    //完成度
    private double completion;

    /**
     * 训练模式 0、默认公里数计时，1、默认时长计公里数
     */
    private int trainingMode;

    /**
     * 训练方案 id
     */
    private Integer schemeId;






}
